import { request } from '@/utils/request'

export function listPackage() {
  return request({
    url: '/v1/garage-kit/package/list',
    method: 'GET'
  })
}

export function listPackageApply(data) {
  return request({
    url: '/v1/garage-kit/package/deliver',
    method: 'GET',
	data
  })
}

export function loadPackageApplyDetail(data) {
  return request({
    url: '/v1/garage-kit/package/deliver/detail',
    method: 'GET',
    data: data
  })
}

export function listPackageBreak(data) {
  return request({
    url: '/v1/garage-kit/package/break',
    method: 'GET',
	data
  })
}

// 锁定
export function  packagelock(data:object) {
  return request({
    url: '/v1/garage-kit/package/lock',
    method: 'POST',
	data
  })
}
// 解锁
export function  packageunlock(data:object) {
  return request({
    url: '/v1/garage-kit/package/unlock',
    method: 'POST',
	data
  })
}

// 分解
export function  packagebreak(data:object) {
  return request({
    url: '/v1/garage-kit/package/break',
    method: 'POST',
	data
  })
}

// 发货
export function  packagedeliver(data:object) {
  return request({
    url: '/v1/garage-kit/package/deliver/v2',
    method: 'POST',
	data
  })
}

